package com.example.zhaojianxu.signin.signIn.teacher.viewModel

import com.example.zhaojianxu.signin.signIn.teacher.model.TeacherEntity
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.async
import java.lang.Exception

class TeacherRequest{

    fun getTeacherList() = GlobalScope.async {
        try {
            listOf(TeacherEntity(),TeacherEntity(),TeacherEntity(),TeacherEntity(),TeacherEntity())
        }catch (e:Exception){
            listOf(TeacherEntity(),TeacherEntity(),TeacherEntity(),TeacherEntity(),TeacherEntity())
        }
    }
}